import org.w3c.dom.ls.LSOutput;

public class Teacher extends Staff{
    private int days;
    private int Lesson_remuneration;
    public Teacher(String name, String position, double Salary, int Lesson_remuneration, int days, int salMonth) {
        super(name, position, Salary, salMonth);
        this.Lesson_remuneration = Lesson_remuneration;
        this.days = days;
    }
    public int getLesson_remuneration() {
        return Lesson_remuneration;
    }
    public void setLesson_remuneration(int Lesson_remuneration) {
        this.Lesson_remuneration = Lesson_remuneration;
    }
    public int getDays() {
        return days;
    }
    public void setDays(int days) {
        this.days = days;
    }

    @Override
    public double getAllsal() {
        return super.getAllsal() + getLesson_remuneration() * getDays();
    }
    @Override
    public String print() {
        return super.print() +   " getLesson_remuneration：" + getLesson_remuneration() * getDays();
    }
}
